<?php
/*
	
*/
defined('BY_JYA') or exit('Access Denied');
global $_RQ,$_AR;

$_RQ['op']=$_RQ['op']?$_RQ['op']:'main';
$return=array();
$return['setting']=$this->plugin_setting('basic');
if($_RQ['op']=='main'){
	/*******main*******/
	//明星管家
	$managers=pdo_getall('jy_smallquan_manager',array('uniacid'=>$_SESSION['uniacid'],'isshow'=>'1','status'=>'1','islock'=>'0'),'','','score desc limit 0,5');
	//友邻计划总金额
	$sql = "SELECT SUM(money) FROM " . tablename('jy_smallquan_plan') . " WHERE uniacid=:uniacid";
    $money = pdo_fetch($sql,array(":uniacid" => $_SESSION['uniacid']));	
	$count =$money['SUM(money)'];
	$return['managers']=$managers;
	$return['count']=$count;
	exi($return);
}